import App from './App'
import utils from './utils'
import store from './store'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
  app.use(uView)
  app.use(store)
  app.mount('#app')
// #endif

// #ifdef VUE3
import { createApp } from 'vue' // 确保正确导入 createApp
import uView from 'uview-ui-next';

export function createAppInstance() {
  const app = createApp(App)
  app.use(uView)
  app.use(store)
  app.mount('#app')
  return {
    app
  }
}

// 初始挂载
createAppInstance()
// #endif